home *** CD-ROM | disk | FTP | other *** search
Unknown | 2005-12-07 | 4.7 KB |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was not able to be converted.
This format is not currently supported by dexvert.
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| file
| data
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 00 00 00 00 00 00 00 | 55 4b 2f 2f 20 43 6f 70 |........|UK// Cop|
|00000010| 79 72 69 67 68 74 20 28 | 43 29 20 32 30 30 35 20 |yright (|C) 2005 |
|00000020| 42 72 61 69 6e 62 6f 78 | 20 47 61 6d 65 73 2e 20 |Brainbox| Games. |
|00000030| 41 6c 6c 20 52 69 67 68 | 74 73 20 52 65 73 65 72 |All Righ|ts Reser|
|00000040| 76 65 64 2e 0d 0a 2f 2f | 20 53 65 70 74 65 6d 62 |ved...//| Septemb|
|00000050| 65 72 20 32 37 2c 20 32 | 30 30 35 0d 0a 63 6c 61 |er 27, 2|005..cla|
|00000060| 73 73 20 47 55 49 53 63 | 72 6f 6c 6c 54 65 78 74 |ss GUISc|rollText|
|00000070| 20 65 78 74 65 6e 64 73 | 20 47 55 49 4c 69 73 74 | extends| GUIList|
|00000080| 0d 0a 09 6e 61 74 69 76 | 65 3b 0d 0a 0d 0a 2f 2f |...nativ|e;....//|
|00000090| 20 28 63 70 70 74 65 78 | 74 29 0d 0a 2f 2f 20 28 | (cpptex|t)..// (|
|000000a0| 63 70 70 74 65 78 74 29 | 0d 0a 2f 2f 20 28 63 70 |cpptext)|..// (cp|
|000000b0| 70 74 65 78 74 29 0d 0a | 2f 2f 20 28 63 70 70 74 |ptext)..|// (cppt|
|000000c0| 65 78 74 29 0d 0a 2f 2f | 20 28 63 70 70 74 65 78 |ext)..//| (cpptex|
|000000d0| 74 29 0d 0a 2f 2f 20 28 | 63 70 70 74 65 78 74 29 |t)..// (|cpptext)|
|000000e0| 0d 0a 0d 0a 65 6e 75 6d | 20 65 53 63 72 6f 6c 6c |....enum| eScroll|
|000000f0| 53 74 61 74 65 0d 0a 7b | 0d 0a 09 53 54 53 5f 4e |State..{|...STS_N|
|00000100| 6f 6e 65 2c 0d 0a 09 53 | 54 53 5f 49 6e 69 74 69 |one,...S|TS_Initi|
|00000110| 61 6c 2c 0d 0a 09 53 54 | 53 5f 43 68 61 72 2c 0d |al,...ST|S_Char,.|
|00000120| 0a 09 53 54 53 5f 45 4f | 4c 2c 0d 0a 09 53 54 53 |..STS_EO|L,...STS|
|00000130| 5f 52 65 70 65 61 74 2c | 0d 0a 7d 3b 0d 0a 0d 0a |_Repeat,|..};....|
|00000140| 2f 2f 20 50 72 69 76 61 | 74 65 20 73 65 74 20 6f |// Priva|te set o|
|00000150| 66 20 76 61 72 73 0d 0a | 76 61 72 20 70 72 6f 74 |f vars..|var prot|
|00000160| 65 63 74 65 64 20 73 74 | 72 69 6e 67 09 43 6f 6e |ected st|ring.Con|
|00000170| 74 65 6e 74 3b 09 09 2f | 2f 20 54 68 69 73 20 69 |tent;../|/ This i|
|00000180| 73 20 74 68 65 20 63 6f | 6e 74 65 6e 74 20 74 6f |s the co|ntent to|
|00000190| 20 64 69 73 70 6c 61 79 | 20 69 6e 20 31 20 73 69 | display| in 1 si|
|000001a0| 6e 67 6c 65 20 73 74 72 | 69 6e 67 0d 0a 76 61 72 |ngle str|ing..var|
|000001b0| 20 73 74 72 69 6e 67 09 | 09 09 09 53 65 70 61 72 | string.|...Separ|
|000001c0| 61 74 6f 72 3b 09 09 2f | 2f 20 53 65 70 61 72 61 |ator;../|/ Separa|
|000001d0| 74 6f 72 20 74 6f 20 75 | 73 65 0d 0a 76 61 72 20 |tor to u|se..var |
|000001e0| 70 72 6f 74 65 63 74 65 | 64 20 69 6e 74 09 09 56 |protecte|d int..V|
|000001f0| 69 73 69 62 6c 65 4c 69 | 6e 65 73 3b 09 2f 2f 20 |isibleLi|nes;.// |
|00000200| 54 68 69 73 20 69 73 20 | 74 68 65 20 6e 75 6d 62 |This is |the numb|
|00000210| 65 72 20 6f 66 20 76 69 | 73 69 62 6c 65 20 6c 69 |er of vi|sible li|
|00000220| 6e 65 73 0d 0a 76 61 72 | 20 70 72 6f 74 65 63 74 |nes..var| protect|
|00000230| 65 64 20 69 6e 74 09 09 | 56 69 73 69 62 6c 65 43 |ed int..|VisibleC|
|00000240| 68 61 72 73 3b 09 2f 2f | 20 48 6f 77 20 4d 61 6e |hars;.//| How Man|
|00000250| 79 20 63 68 61 72 73 20 | 69 6e 20 74 68 65 20 6c |y chars |in the l|
|00000260| 61 73 74 20 64 69 73 70 | 6c 61 79 65 64 20 6c 69 |ast disp|layed li|
|00000270| 6e 65 20 61 72 65 20 76 | 69 73 69 62 6c 65 0d 0a |ne are v|isible..|
|00000280| 76 61 72 20 70 72 6f 74 | 65 63 74 65 64 20 69 6e |var prot|ected in|
|00000290| 74 09 09 6f 6c 64 57 69 | 64 74 68 3b 09 09 2f 2f |t..oldWi|dth;..//|
|000002a0| 20 4c 61 73 74 20 77 69 | 64 74 68 20 6f 66 20 74 | Last wi|dth of t|
|000002b0| 68 65 20 64 69 70 6c 61 | 79 20 61 72 65 61 0d 0a |he dipla|y area..|
|000002c0| 76 61 72 20 70 72 6f 74 | 65 63 74 65 64 20 65 53 |var prot|ected eS|
|000002d0| 63 72 6f 6c 6c 53 74 61 | 74 65 20 53 63 72 6f 6c |crollSta|te Scrol|
|000002e0| 6c 53 74 61 74 65 3b 09 | 2f 2f 20 57 68 61 74 20 |lState;.|// What |
|000002f0| 77 61 73 20 74 68 65 20 | 6c 61 73 74 20 61 63 74 |was the |last act|
|00000300| 69 6f 6e 20 77 65 20 64 | 69 64 0d 0a 76 61 72 20 |ion we d|id..var |
|00000310| 70 72 6f 74 65 63 74 65 | 64 20 62 6f 6f 6c 09 09 |protecte|d bool..|
|00000320| 62 4e 65 77 43 6f 6e 74 | 65 6e 74 3b 09 2f 2f 20 |bNewCont|ent;.// |
|00000330| 54 68 69 73 20 69 73 20 | 73 65 74 20 77 68 65 6e |This is |set when|
|00000340| 20 6e 65 77 20 74 65 78 | 74 20 63 6f 6e 74 65 6e | new tex|t conten|
|00000350| 74 20 68 61 73 20 62 65 | 65 6e 20 73 65 74 20 66 |t has be|en set f|
|00000360| 6f 72 20 74 68 65 20 63 | 6f 6e 74 72 6f 6c 0d 0a |or the c|ontrol..|
|00000370| 76 61 72 20 70 72 6f 74 | 65 63 74 65 64 20 62 6f |var prot|ected bo|
|00000380| 6f 6c 09 09 62 53 74 6f | 70 70 65 64 3b 09 09 2f |ol..bSto|pped;../|
|00000390| 2f 20 54 65 6c 6c 73 20 | 77 68 65 6e 20 74 68 65 |/ Tells |when the|
|000003a0| 20 73 65 71 75 65 6e 63 | 65 20 68 61 73 20 73 74 | sequenc|e has st|
|000003b0| 6f 70 70 65 64 20 61 6e | 69 6d 61 74 69 6e 67 20 |opped an|imating |
|000003c0| 28 63 61 6e 20 62 65 20 | 72 75 73 68 65 64 20 62 |(can be |rushed b|
|000003d0| 79 20 63 6c 69 63 6b 69 | 6e 67 20 3f 29 0d 0a 2f |y clicki|ng ?)../|
|000003e0| 2f 76 61 72 20 70 72 6f | 74 65 63 74 65 64 20 62 |/var pro|tected b|
|000003f0| 6f 6f 6c 09 09 62 46 6f | 72 63 65 48 69 64 65 53 |ool..bFo|rceHideS|
|00000400| 42 3b 09 2f 2f 20 46 6f | 72 63 65 20 48 69 64 65 |B;.// Fo|rce Hide|
|00000410| 20 74 68 65 20 73 63 72 | 6f 6c 6c 62 61 72 0d 0a | the scr|ollbar..|
|00000420| 0d 0a 76 61 72 20 69 6e | 74 09 09 4d 61 78 48 69 |..var in|t..MaxHi|
|00000430| 73 74 6f 72 79 3b 09 09 | 2f 2f 20 4d 61 78 69 6d |story;..|// Maxim|
|00000440| 75 6d 20 6e 75 6d 62 65 | 72 20 6f 66 20 72 6f 77 |um numbe|r of row|
|00000450| 73 2e 20 4f 6e 6c 79 20 | 75 73 65 64 20 69 6e 20 |s. Only |used in |
|00000460| 63 6f 6e 6a 75 6e 63 74 | 69 6f 6e 20 77 69 74 68 |conjunct|ion with|
|00000470| 20 4e 65 77 54 65 78 74 | 2e 20 30 20 69 6e 64 69 | NewText|. 0 indi|
|00000480| 63 61 74 65 73 20 6e 6f | 20 6c 69 6d 69 74 2e 0d |cates no| limit..|
|00000490| 0a 76 61 72 20 73 74 72 | 69 6e 67 09 4e 65 77 54 |.var str|ing.NewT|
|000004a0| 65 78 74 3b 09 09 2f 2f | 20 4e 65 77 20 74 65 78 |ext;..//| New tex|
|000004b0| 74 20 74 6f 20 61 64 64 | 20 74 68 65 20 65 6e 64 |t to add| the end|
|000004c0| 20 6f 66 20 0d 0a 76 61 | 72 20 73 74 72 69 6e 67 | of ..va|r string|
|000004d0| 09 43 6c 69 63 6b 65 64 | 53 74 72 69 6e 67 3b 09 |.Clicked|String;.|
|000004e0| 2f 2f 20 46 69 6c 6c 65 | 64 20 69 6e 20 28 69 66 |// Fille|d in (if|
|000004f0| 20 62 53 65 6c 65 63 74 | 54 65 78 74 20 69 73 20 | bSelect|Text is |
|00000500| 74 72 75 65 29 20 77 68 | 65 6e 20 75 73 65 72 20 |true) wh|en user |
|00000510| 63 6c 69 63 6b 73 20 6f | 6e 20 61 20 77 6f 72 64 |clicks o|n a word|
|00000520| 0d 0a 0d 0a 2f 2f 20 50 | 75 62 6c 69 63 20 73 65 |....// P|ublic se|
|00000530| 74 20 6f 66 20 76 61 72 | 73 0d 0a 76 61 72 20 62 |t of var|s..var b|
|00000540| 6f 6f 6c 09 62 52 65 70 | 65 61 74 3b 09 09 2f 2f |ool.bRep|eat;..//|
|00000550| 20 53 68 6f 75 6c 64 20 | 74 68 65 20 73 65 71 75 | Should |the sequ|
|00000560| 65 6e 63 65 20 62 65 20 | 72 65 70 65 61 74 65 64 |ence be |repeated|
|00000570| 20 3f 0d 0a 76 61 72 20 | 62 6f 6f 6c 20 20 20 20 | ?..var |bool |
|00000580| 62 4e 6f 54 65 6c 65 74 | 79 70 65 3b 09 2f 2f 20 |bNoTelet|ype;.// |
|00000590| 44 6f 6e 74 20 64 6f 20 | 74 68 65 20 74 65 6c 65 |Dont do |the tele|
|000005a0| 74 79 70 69 6e 67 20 65 | 66 66 65 63 74 20 61 74 |typing e|ffect at|
|000005b0| 20 61 6c 6c 0d 0a 76 61 | 72 20 62 6f 6f 6c 09 62 | all..va|r bool.b|
|000005c0| 43 6c 69 63 6b 54 65 78 | 74 3b 09 20 20 20 20 2f |ClickTex|t;. /|
|000005d0| 2f 20 55 70 6f 6e 20 63 | 6c 69 63 6b 69 6e 67 20 |/ Upon c|licking |
|000005e0| 6f 6e 20 74 68 69 73 20 | 74 65 78 74 20 62 6f 78 |on this |text box|
|000005f0| 2c 20 66 69 6c 6c 20 69 | 6e 20 43 6c 69 63 6b 65 |, fill i|n Clicke|
|00000600| 64 53 74 72 69 6e 67 20 | 66 69 65 6c 64 0d 0a 76 |dString |field..v|
|00000610| 61 72 20 66 6c 6f 61 74 | 09 49 6e 69 74 69 61 6c |ar float|.Initial|
|00000620| 44 65 6c 61 79 3b 09 2f | 2f 20 49 6e 69 74 69 61 |Delay;./|/ Initia|
|00000630| 6c 20 64 65 6c 61 79 20 | 61 66 74 65 72 20 6e 65 |l delay |after ne|
|00000640| 77 20 63 6f 6e 74 65 6e | 74 20 77 61 73 20 73 65 |w conten|t was se|
|00000650| 74 0d 0a 76 61 72 20 66 | 6c 6f 61 74 09 43 68 61 |t..var f|loat.Cha|
|00000660| 72 44 65 6c 61 79 3b 09 | 09 2f 2f 20 54 68 69 73 |rDelay;.|.// This|
|00000670| 20 69 73 20 74 68 65 20 | 64 65 6c 61 79 20 62 65 | is the |delay be|
|00000680| 74 77 65 65 6e 20 65 61 | 63 68 20 63 68 61 72 0d |tween ea|ch char.|
|00000690| 0a 76 61 72 20 66 6c 6f | 61 74 09 45 4f 4c 44 65 |.var flo|at.EOLDe|
|000006a0| 6c 61 79 3b 09 09 2f 2f | 20 54 68 69 73 20 69 73 |lay;..//| This is|
|000006b0| 20 74 68 65 20 64 65 6c | 61 79 20 74 6f 20 75 73 | the del|ay to us|
|000006c0| 65 20 77 68 65 6e 20 72 | 65 61 63 68 69 6e 67 20 |e when r|eaching |
|000006d0| 65 6e 64 20 6f 66 20 6c | 69 6e 65 0d 0a 76 61 72 |end of l|ine..var|
|000006e0| 20 66 6c 6f 61 74 09 52 | 65 70 65 61 74 44 65 6c | float.R|epeatDel|
|000006f0| 61 79 3b 09 2f 2f 20 54 | 68 69 73 20 69 73 20 75 |ay;.// T|his is u|
|00000700| 73 65 64 20 61 66 74 65 | 72 20 61 6c 6c 20 74 68 |sed afte|r all th|
|00000710| 65 20 74 65 78 74 20 68 | 61 73 20 62 65 65 6e 20 |e text h|as been |
|00000720| 64 69 73 70 6c 61 79 65 | 64 20 61 6e 64 20 62 52 |displaye|d and bR|
|00000730| 65 70 65 61 74 20 69 73 | 20 74 72 75 65 0d 0a 0d |epeat is| true...|
|00000740| 0a 6e 61 74 69 76 65 20 | 66 69 6e 61 6c 20 66 75 |.native |final fu|
|00000750| 6e 63 74 69 6f 6e 20 73 | 74 72 69 6e 67 20 47 65 |nction s|tring Ge|
|00000760| 74 57 6f 72 64 55 6e 64 | 65 72 43 75 72 73 6f 72 |tWordUnd|erCursor|
|00000770| 28 29 3b 0d 0a 0d 0a 64 | 65 6c 65 67 61 74 65 20 |();....d|elegate |
|00000780| 4f 6e 45 6e 64 4f 66 4c | 69 6e 65 28 29 3b 0d 0a |OnEndOfL|ine();..|
|00000790| 0d 0a 66 75 6e 63 74 69 | 6f 6e 20 49 6e 69 74 43 |..functi|on InitC|
|000007a0| 6f 6d 70 6f 6e 65 6e 74 | 28 47 55 49 43 6f 6e 74 |omponent|(GUICont|
|000007b0| 72 6f 6c 6c 65 72 20 4d | 79 43 6f 6e 74 72 6f 6c |roller M|yControl|
|000007c0| 6c 65 72 2c 20 47 55 49 | 43 6f 6d 70 6f 6e 65 6e |ler, GUI|Componen|
|000007d0| 74 20 4d 79 4f 77 6e 65 | 72 29 0d 0a 7b 0d 0a 09 |t MyOwne|r)..{...|
|000007e0| 53 75 70 65 72 2e 49 6e | 69 74 63 6f 6d 70 6f 6e |Super.In|itcompon|
|000007f0| 65 6e 74 28 4d 79 43 6f | 6e 74 72 6f 6c 6c 65 72 |ent(MyCo|ntroller|
|00000800| 2c 20 4d 79 4f 77 6e 65 | 72 29 3b 0d 0a 09 4f 6e |, MyOwne|r);...On|
|00000810| 4b 65 79 54 79 70 65 3d | 49 6e 74 65 72 6e 61 6c |KeyType=|Internal|
|00000820| 4f 6e 4b 65 79 54 79 70 | 65 3b 0d 0a 09 4f 6e 4b |OnKeyTyp|e;...OnK|
|00000830| 65 79 45 76 65 6e 74 3d | 49 6e 74 65 72 6e 61 6c |eyEvent=|Internal|
|00000840| 4f 6e 4b 65 79 45 76 65 | 6e 74 3b 0d 0a 09 4f 6e |OnKeyEve|nt;...On|
|00000850| 43 6c 69 63 6b 3d 49 6e | 74 65 72 6e 61 6c 4f 6e |Click=In|ternalOn|
|00000860| 43 6c 69 63 6b 3b 0d 0a | 0d 0a 09 69 66 28 62 4e |Click;..|...if(bN|
|00000870| 6f 54 65 6c 65 74 79 70 | 65 29 0d 0a 09 09 45 6e |oTeletyp|e)....En|
|00000880| 64 53 63 72 6f 6c 6c 69 | 6e 67 28 29 3b 0d 0a 7d |dScrolli|ng();..}|
|00000890| 09 0d 0a 09 09 0d 0a 66 | 75 6e 63 74 69 6f 6e 20 |.......f|unction |
|000008a0| 53 65 74 43 6f 6e 74 65 | 6e 74 28 73 74 72 69 6e |SetConte|nt(strin|
|000008b0| 67 20 4e 65 77 43 6f 6e | 74 65 6e 74 2c 20 6f 70 |g NewCon|tent, op|
|000008c0| 74 69 6f 6e 61 6c 20 73 | 74 72 69 6e 67 20 73 65 |tional s|tring se|
|000008d0| 70 29 0d 0a 7b 0d 0a 09 | 69 66 20 28 73 65 70 20 |p)..{...|if (sep |
|000008e0| 3d 3d 20 22 22 29 0d 0a | 09 09 53 65 70 61 72 61 |== "")..|..Separa|
|000008f0| 74 6f 72 20 3d 20 64 65 | 66 61 75 6c 74 2e 53 65 |tor = de|fault.Se|
|00000900| 70 61 72 61 74 6f 72 3b | 0d 0a 09 65 6c 73 65 0d |parator;|...else.|
|00000910| 0a 09 09 53 65 70 61 72 | 61 74 6f 72 20 3d 20 73 |...Separ|ator = s|
|00000920| 65 70 3b 0d 0a 0d 0a 09 | 43 6f 6e 74 65 6e 74 20 |ep;.....|Content |
|00000930| 3d 20 4e 65 77 43 6f 6e | 74 65 6e 74 3b 0d 0a 0d |= NewCon|tent;...|
|00000940| 0a 09 62 4e 65 77 43 6f | 6e 74 65 6e 74 20 3d 20 |..bNewCo|ntent = |
|00000950| 74 72 75 65 3b 0d 0a 0d | 0a 09 69 66 28 62 4e 6f |true;...|..if(bNo|
|00000960| 54 65 6c 65 74 79 70 65 | 29 0d 0a 09 09 45 6e 64 |Teletype|)....End|
|00000970| 53 63 72 6f 6c 6c 69 6e | 67 28 29 3b 0d 0a 09 65 |Scrollin|g();...e|
|00000980| 6c 73 65 0d 0a 09 09 52 | 65 73 74 61 72 74 28 29 |lse....R|estart()|
|00000990| 3b 0d 0a 7d 0d 0a 0d 0a | 66 75 6e 63 74 69 6f 6e |;..}....|function|
|000009a0| 20 53 74 6f 70 28 29 0d | 0a 7b 0d 0a 09 62 53 74 | Stop().|.{...bSt|
|000009b0| 6f 70 70 65 64 20 3d 20 | 74 72 75 65 3b 0d 0a 09 |opped = |true;...|
|000009c0| 53 63 72 6f 6c 6c 53 74 | 61 74 65 20 3d 20 53 54 |ScrollSt|ate = ST|
|000009d0| 53 5f 4e 6f 6e 65 3b 0d | 0a 09 54 69 6d 65 72 49 |S_None;.|..TimerI|
|000009e0| 6e 74 65 72 76 61 6c 20 | 3d 20 30 3b 0d 0a 7d 0d |nterval |= 0;..}.|
|000009f0| 0a 0d 0a 66 75 6e 63 74 | 69 6f 6e 20 52 65 73 74 |...funct|ion Rest|
|00000a00| 61 72 74 28 29 0d 0a 7b | 0d 0a 09 56 69 73 69 62 |art()..{|...Visib|
|00000a10| 6c 65 4c 69 6e 65 73 20 | 3d 20 30 3b 0d 0a 09 56 |leLines |= 0;...V|
|00000a20| 69 73 69 62 6c 65 43 68 | 61 72 73 20 3d 20 30 3b |isibleCh|ars = 0;|
|00000a30| 0d 0a 09 69 66 20 28 49 | 6e 69 74 69 61 6c 44 65 |...if (I|nitialDe|
|00000a40| 6c 61 79 20 3c 3d 20 30 | 2e 30 29 0d 0a 09 7b 0d |lay <= 0|.0)...{.|
|00000a50| 0a 09 09 53 63 72 6f 6c | 6c 53 74 61 74 65 20 3d |...Scrol|lState =|
|00000a60| 20 53 54 53 5f 4e 6f 6e | 65 3b 0d 0a 09 09 53 65 | STS_Non|e;....Se|
|00000a70| 74 54 69 6d 65 72 28 30 | 2e 30 30 31 2c 20 74 72 |tTimer(0|.001, tr|
|00000a80| 75 65 29 3b 0d 0a 09 7d | 0d 0a 09 65 6c 73 65 0d |ue);...}|...else.|
|00000a90| 0a 09 7b 0d 0a 09 09 53 | 63 72 6f 6c 6c 53 74 61 |..{....S|crollSta|
|00000aa0| 74 65 20 3d 20 53 54 53 | 5f 49 6e 69 74 69 61 6c |te = STS|_Initial|
|00000ab0| 3b 0d 0a 09 09 53 65 74 | 54 69 6d 65 72 28 49 6e |;....Set|Timer(In|
|00000ac0| 69 74 69 61 6c 44 65 6c | 61 79 2c 20 74 72 75 65 |itialDel|ay, true|
|00000ad0| 29 3b 0d 0a 09 7d 0d 0a | 09 62 53 74 6f 70 70 65 |);...}..|.bStoppe|
|00000ae0| 64 20 3d 20 66 61 6c 73 | 65 3b 0d 0a 7d 0d 0a 0d |d = fals|e;..}...|
|00000af0| 0a 66 75 6e 63 74 69 6f | 6e 20 62 6f 6f 6c 20 53 |.functio|n bool S|
|00000b00| 6b 69 70 43 68 61 72 28 | 29 0d 0a 7b 0d 0a 09 69 |kipChar(|)..{...i|
|00000b10| 66 20 28 49 74 65 6d 43 | 6f 75 6e 74 20 3e 20 30 |f (ItemC|ount > 0|
|00000b20| 20 26 26 20 21 62 53 74 | 6f 70 70 65 64 20 26 26 | && !bSt|opped &&|
|00000b30| 20 56 69 73 69 62 6c 65 | 4c 69 6e 65 73 20 3e 3d | Visible|Lines >=|
|00000b40| 20 30 20 26 26 20 56 69 | 73 69 62 6c 65 4c 69 6e | 0 && Vi|sibleLin|
|00000b50| 65 73 20 3c 20 49 74 65 | 6d 43 6f 75 6e 74 29 0d |es < Ite|mCount).|
|00000b60| 0a 09 7b 0d 0a 09 09 69 | 66 20 28 56 69 73 69 62 |..{....i|f (Visib|
|00000b70| 6c 65 43 68 61 72 73 20 | 3d 3d 20 4c 65 6e 28 45 |leChars |== Len(E|
|00000b80| 6c 65 6d 65 6e 74 73 5b | 56 69 73 69 62 6c 65 4c |lements[|VisibleL|
|00000b90| 69 6e 65 73 5d 2e 49 74 | 65 6d 29 29 0d 0a 09 09 |ines].It|em))....|
|00000ba0| 7b 0d 0a 09 09 09 69 66 | 20 28 56 69 73 69 62 6c |{.....if| (Visibl|
|00000bb0| 65 4c 69 6e 65 73 2b 31 | 20 3c 20 49 74 65 6d 43 |eLines+1| < ItemC|
|00000bc0| 6f 75 6e 74 29 0d 0a 09 | 09 09 7b 0d 0a 09 09 09 |ount)...|..{.....|
|00000bd0| 09 56 69 73 69 62 6c 65 | 4c 69 6e 65 73 2b 2b 3b |.Visible|Lines++;|
|00000be0| 0d 0a 09 09 09 09 56 69 | 73 69 62 6c 65 43 68 61 |......Vi|sibleCha|
|00000bf0| 72 73 20 3d 20 30 3b 0d | 0a 09 09 09 09 54 69 6d |rs = 0;.|.....Tim|
|00000c00| 65 72 49 6e 74 65 72 76 | 61 6c 20 3d 20 45 4f 4c |erInterv|al = EOL|
|00000c10| 44 65 6c 61 79 3b 0d 0a | 09 09 09 09 53 63 72 6f |Delay;..|....Scro|
|00000c20| 6c 6c 53 74 61 74 65 20 | 3d 20 53 54 53 5f 45 4f |llState |= STS_EO|
|00000c30| 4c 3b 0d 0a 09 09 09 09 | 4f 6e 45 6e 64 4f 66 4c |L;......|OnEndOfL|
|00000c40| 69 6e 65 28 29 3b 0d 0a | 09 09 09 09 72 65 74 75 |ine();..|....retu|
|00000c50| 72 6e 20 74 72 75 65 3b | 0d 0a 09 09 09 7d 0d 0a |rn true;|.....}..|
|00000c60| 09 09 7d 0d 0a 09 09 65 | 6c 73 65 0d 0a 09 09 7b |..}....e|lse....{|
|00000c70| 0d 0a 09 09 09 56 69 73 | 69 62 6c 65 43 68 61 72 |.....Vis|ibleChar|
|00000c80| 73 2b 2b 3b 0d 0a 09 09 | 09 54 69 6d 65 72 49 6e |s++;....|.TimerIn|
|00000c90| 74 65 72 76 61 6c 20 3d | 20 43 68 61 72 44 65 6c |terval =| CharDel|
|00000ca0| 61 79 3b 0d 0a 09 09 09 | 53 63 72 6f 6c 6c 53 74 |ay;.....|ScrollSt|
|00000cb0| 61 74 65 20 3d 20 53 54 | 53 5f 43 68 61 72 3b 0d |ate = ST|S_Char;.|
|00000cc0| 0a 09 09 09 72 65 74 75 | 72 6e 20 74 72 75 65 3b |....retu|rn true;|
|00000cd0| 0d 0a 09 09 7d 0d 0a 09 | 7d 0d 0a 09 72 65 74 75 |....}...|}...retu|
|00000ce0| 72 6e 20 66 61 6c 73 65 | 3b 0d 0a 7d 0d 0a 0d 0a |rn false|;..}....|
|00000cf0| 65 76 65 6e 74 20 54 69 | 6d 65 72 28 29 0d 0a 7b |event Ti|mer()..{|
|00000d00| 0d 0a 09 69 66 20 28 49 | 74 65 6d 43 6f 75 6e 74 |...if (I|temCount|
|00000d10| 20 3d 3d 20 30 29 0d 0a | 09 7b 0d 0a 09 09 69 66 | == 0)..|.{....if|
|00000d20| 20 28 21 62 4e 65 77 43 | 6f 6e 74 65 6e 74 29 0d | (!bNewC|ontent).|
|00000d30| 0a 09 09 09 54 69 6d 65 | 72 49 6e 74 65 72 76 61 |....Time|rInterva|
|00000d40| 6c 3d 30 3b 0d 0a 09 09 | 72 65 74 75 72 6e 3b 0d |l=0;....|return;.|
|00000d50| 0a 09 7d 0d 0a 0d 0a 09 | 69 66 20 28 53 63 72 6f |..}.....|if (Scro|
|00000d60| 6c 6c 53 74 61 74 65 20 | 3d 3d 20 53 54 53 5f 52 |llState |== STS_R|
|00000d70| 65 70 65 61 74 29 0d 0a | 09 7b 0d 0a 09 09 52 65 |epeat)..|.{....Re|
|00000d80| 73 74 61 72 74 28 29 3b | 0d 0a 09 7d 0d 0a 09 65 |start();|...}...e|
|00000d90| 6c 73 65 20 69 66 20 28 | 53 63 72 6f 6c 6c 53 74 |lse if (|ScrollSt|
|00000da0| 61 74 65 20 3d 3d 20 53 | 54 53 5f 45 4f 4c 29 0d |ate == S|TS_EOL).|
|00000db0| 0a 09 7b 0d 0a 09 09 69 | 66 20 28 21 53 6b 69 70 |..{....i|f (!Skip|
|00000dc0| 43 68 61 72 28 29 29 0d | 0a 09 09 7b 0d 0a 09 09 |Char()).|...{....|
|00000dd0| 09 69 66 20 28 62 52 65 | 70 65 61 74 29 0d 0a 09 |.if (bRe|peat)...|
|00000de0| 09 09 7b 0d 0a 09 09 09 | 09 69 66 20 28 52 65 70 |..{.....|.if (Rep|
|00000df0| 65 61 74 44 65 6c 61 79 | 20 3e 20 30 29 0d 0a 09 |eatDelay| > 0)...|
|00000e00| 09 09 09 7b 0d 0a 09 09 | 09 09 09 54 69 6d 65 72 |...{....|...Timer|
|00000e10| 49 6e 74 65 72 76 61 6c | 20 3d 20 52 65 70 65 61 |Interval| = Repea|
|00000e20| 74 44 65 6c 61 79 3b 0d | 0a 09 09 09 09 09 53 63 |tDelay;.|......Sc|
|00000e30| 72 6f 6c 6c 53 74 61 74 | 65 20 3d 20 53 54 53 5f |rollStat|e = STS_|
|00000e40| 52 65 70 65 61 74 3b 0d | 0a 09 09 09 09 7d 0d 0a |Repeat;.|.....}..|
|00000e50| 09 09 09 09 65 6c 73 65 | 0d 0a 09 09 09 09 09 52 |....else|.......R|
|00000e60| 65 73 74 61 72 74 28 29 | 3b 0d 0a 09 09 09 7d 0d |estart()|;.....}.|
|00000e70| 0a 09 09 09 65 6c 73 65 | 0d 0a 09 09 09 7b 0d 0a |....else|.....{..|
|00000e80| 09 09 09 09 62 53 74 6f | 70 70 65 64 20 3d 20 74 |....bSto|pped = t|
|00000e90| 72 75 65 3b 0d 0a 09 09 | 09 09 53 63 72 6f 6c 6c |rue;....|..Scroll|
|00000ea0| 53 74 61 74 65 20 3d 20 | 53 54 53 5f 4e 6f 6e 65 |State = |STS_None|
|00000eb0| 3b 0d 0a 09 09 09 09 54 | 69 6d 65 72 49 6e 74 65 |;......T|imerInte|
|00000ec0| 72 76 61 6c 20 3d 20 30 | 3b 0d 0a 09 09 09 7d 0d |rval = 0|;.....}.|
|00000ed0| 0a 09 09 7d 0d 0a 09 7d | 0d 0a 09 65 6c 73 65 20 |...}...}|...else |
|00000ee0| 69 66 20 28 53 63 72 6f | 6c 6c 53 74 61 74 65 20 |if (Scro|llState |
|00000ef0| 3d 3d 20 53 54 53 5f 4e | 6f 6e 65 29 0d 0a 09 7b |== STS_N|one)...{|
|00000f00| 0d 0a 09 09 53 63 72 6f | 6c 6c 53 74 61 74 65 20 |....Scro|llState |
|00000f10| 3d 20 53 54 53 5f 49 6e | 69 74 69 61 6c 3b 0d 0a |= STS_In|itial;..|
|00000f20| 09 09 53 65 74 54 69 6d | 65 72 28 43 68 61 72 44 |..SetTim|er(CharD|
|00000f30| 65 6c 61 79 2c 20 74 72 | 75 65 29 3b 0d 0a 09 7d |elay, tr|ue);...}|
|00000f40| 0d 0a 09 65 6c 73 65 0d | 0a 09 7b 0d 0a 09 09 69 |...else.|..{....i|
|00000f50| 66 20 28 21 53 6b 69 70 | 43 68 61 72 28 29 29 0d |f (!Skip|Char()).|
|00000f60| 0a 09 09 7b 0d 0a 09 09 | 09 53 63 72 6f 6c 6c 53 |...{....|.ScrollS|
|00000f70| 74 61 74 65 3d 53 54 53 | 5f 45 4f 4c 3b 0d 0a 09 |tate=STS|_EOL;...|
|00000f80| 09 09 54 69 6d 65 72 49 | 6e 74 65 72 76 61 6c 3d |..TimerI|nterval=|
|00000f90| 45 4f 4c 44 65 6c 61 79 | 3b 0d 0a 09 09 09 4f 6e |EOLDelay|;.....On|
|00000fa0| 45 6e 64 4f 66 4c 69 6e | 65 28 29 3b 0d 0a 09 09 |EndOfLin|e();....|
|00000fb0| 7d 0d 0a 09 7d 0d 0a 7d | 0d 0a 0d 0a 66 75 6e 63 |}...}..}|....func|
|00000fc0| 74 69 6f 6e 20 62 6f 6f | 6c 20 49 6e 74 65 72 6e |tion boo|l Intern|
|00000fd0| 61 6c 4f 6e 43 6c 69 63 | 6b 28 47 55 49 43 6f 6d |alOnClic|k(GUICom|
|00000fe0| 70 6f 6e 65 6e 74 20 53 | 65 6e 64 65 72 29 0d 0a |ponent S|ender)..|
|00000ff0| 7b 0d 0a 09 6c 6f 63 61 | 6c 20 62 6f 6f 6c 20 72 |{...loca|l bool r|
|00001000| 65 74 76 61 6c 3b 0d 0a | 0d 0a 09 69 66 28 62 43 |etval;..|...if(bC|
|00001010| 6c 69 63 6b 54 65 78 74 | 29 0d 0a 09 7b 0d 0a 09 |lickText|)...{...|
|00001020| 09 43 6c 69 63 6b 65 64 | 53 74 72 69 6e 67 20 3d |.Clicked|String =|
|00001030| 20 47 65 74 57 6f 72 64 | 55 6e 64 65 72 43 75 72 | GetWord|UnderCur|
|00001040| 73 6f 72 28 29 3b 0d 0a | 09 09 72 65 74 75 72 6e |sor();..|..return|
|00001050| 20 74 72 75 65 3b 0d 0a | 09 7d 0d 0a 0d 0a 09 72 | true;..|.}.....r|
|00001060| 65 74 76 61 6c 20 3d 20 | 53 75 70 65 72 2e 49 6e |etval = |Super.In|
|00001070| 74 65 72 6e 61 6c 4f 6e | 43 6c 69 63 6b 28 53 65 |ternalOn|Click(Se|
|00001080| 6e 64 65 72 29 3b 0d 0a | 09 69 66 20 28 72 65 74 |nder);..|.if (ret|
|00001090| 76 61 6c 29 0d 0a 09 09 | 45 6e 64 53 63 72 6f 6c |val)....|EndScrol|
|000010a0| 6c 69 6e 67 28 29 3b 0d | 0a 0d 0a 09 72 65 74 75 |ling();.|....retu|
|000010b0| 72 6e 20 72 65 74 76 61 | 6c 3b 0d 0a 7d 0d 0a 0d |rn retva|l;..}...|
|000010c0| 0a 66 75 6e 63 74 69 6f | 6e 20 62 6f 6f 6c 20 49 |.functio|n bool I|
|000010d0| 6e 74 65 72 6e 61 6c 4f | 6e 4b 65 79 54 79 70 65 |nternalO|nKeyType|
|000010e0| 28 6f 75 74 20 62 79 74 | 65 20 4b 65 79 2c 20 6f |(out byt|e Key, o|
|000010f0| 70 74 69 6f 6e 61 6c 20 | 73 74 72 69 6e 67 20 55 |ptional |string U|
|00001100| 6e 69 63 6f 64 65 29 0d | 0a 7b 0d 0a 6c 6f 63 61 |nicode).|.{..loca|
|00001110| 6c 20 62 6f 6f 6c 20 72 | 65 74 76 61 6c 3b 0d 0a |l bool r|etval;..|
|00001120| 0d 0a 09 72 65 74 76 61 | 6c 20 3d 20 53 75 70 65 |...retva|l = Supe|
|00001130| 72 2e 49 6e 74 65 72 6e | 61 6c 4f 6e 4b 65 79 54 |r.Intern|alOnKeyT|
|00001140| 79 70 65 28 4b 65 79 2c | 20 55 6e 69 63 6f 64 65 |ype(Key,| Unicode|
|00001150| 29 3b 0d 0a 09 69 66 20 | 28 72 65 74 76 61 6c 29 |);...if |(retval)|
|00001160| 0d 0a 09 09 45 6e 64 53 | 63 72 6f 6c 6c 69 6e 67 |....EndS|crolling|
|00001170| 28 29 3b 0d 0a 0d 0a 09 | 72 65 74 75 72 6e 20 72 |();.....|return r|
|00001180| 65 74 76 61 6c 3b 0d 0a | 7d 0d 0a 0d 0a 66 75 6e |etval;..|}....fun|
|00001190| 63 74 69 6f 6e 20 62 6f | 6f 6c 20 49 6e 74 65 72 |ction bo|ol Inter|
|000011a0| 6e 61 6c 4f 6e 4b 65 79 | 45 76 65 6e 74 28 6f 75 |nalOnKey|Event(ou|
|000011b0| 74 20 62 79 74 65 20 4b | 65 79 2c 20 6f 75 74 20 |t byte K|ey, out |
|000011c0| 62 79 74 65 20 53 74 61 | 74 65 2c 20 66 6c 6f 61 |byte Sta|te, floa|
|000011d0| 74 20 64 65 6c 74 61 29 | 0d 0a 7b 0d 0a 6c 6f 63 |t delta)|..{..loc|
|000011e0| 61 6c 20 62 6f 6f 6c 20 | 72 65 74 76 61 6c 3b 0d |al bool |retval;.|
|000011f0| 0a 0d 0a 09 72 65 74 76 | 61 6c 20 3d 20 53 75 70 |....retv|al = Sup|
|00001200| 65 72 2e 49 6e 74 65 72 | 6e 61 6c 4f 6e 4b 65 79 |er.Inter|nalOnKey|
|00001210| 45 76 65 6e 74 28 4b 65 | 79 2c 20 53 74 61 74 65 |Event(Ke|y, State|
|00001220| 2c 20 64 65 6c 74 61 29 | 3b 0d 0a 09 69 66 20 28 |, delta)|;...if (|
|00001230| 72 65 74 76 61 6c 29 0d | 0a 09 09 45 6e 64 53 63 |retval).|...EndSc|
|00001240| 72 6f 6c 6c 69 6e 67 28 | 29 3b 0d 0a 0d 0a 09 72 |rolling(|);.....r|
|00001250| 65 74 75 72 6e 20 72 65 | 74 76 61 6c 3b 0d 0a 7d |eturn re|tval;..}|
|00001260| 0d 0a 0d 0a 66 75 6e 63 | 74 69 6f 6e 20 45 6e 64 |....func|tion End|
|00001270| 53 63 72 6f 6c 6c 69 6e | 67 28 29 0d 0a 7b 0d 0a |Scrollin|g()..{..|
|00001280| 09 62 53 74 6f 70 70 65 | 64 20 3d 20 74 72 75 65 |.bStoppe|d = true|
|00001290| 3b 0d 0a 09 69 66 28 4d | 79 53 63 72 6f 6c 6c 42 |;...if(M|yScrollB|
|000012a0| 61 72 20 21 3d 20 4e 6f | 6e 65 29 0d 0a 09 09 4d |ar != No|ne)....M|
|000012b0| 79 53 63 72 6f 6c 6c 42 | 61 72 2e 41 6c 69 67 6e |yScrollB|ar.Align|
|000012c0| 54 68 75 6d 62 28 29 3b | 0d 0a 09 4b 69 6c 6c 54 |Thumb();|...KillT|
|000012d0| 69 6d 65 72 28 29 3b 0d | 0a 7d 0d 0a 0d 0a 00 |imer();.|.}..... |
+--------+-------------------------+-------------------------+--------+--------+